package com.cqie.hospitalescort.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 基础表-省市区
 * </p>
 *
 * @author gdy
 * @since 2025-02-18
 */
@Getter
@Setter
@ApiModel(value = "City对象", description = "基础表-省市区")
public class City implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("区域编号")
    private String code;

    @ApiModelProperty("层级 1,2,3")
    private Integer level;

    @ApiModelProperty("父级ID")
    private Integer parentId;

    @ApiModelProperty("拼音首字母缩写")
    private String acronym;

    @ApiModelProperty("排序")
    private Integer sort;

}
